package com.r2coding.server.modules.user.po;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2023/10/10 12:50
 **/
@Data
public class ChangePasswordPo implements Serializable {

    private static final long serialVersionUID = 7700338293626365523L;

    @NotBlank(message = "旧密码不能为空")
    @Length(min = 6, max = 16, message = "请输入6-16位旧密码")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 16, message = "请输入6-16位新密码")
    private String newPassword;
}
